package DesignPattern.CreationalPattern.FactoryPattern;

public class FactoryDemo {
    public static void main(String[] args) {

            Factory factory = new Factory();
            Phone huawei = factory.createPhone("Huawei");
            Phone iphone = factory.createPhone("Apple");
            System.out.println(huawei.brand());
            System.out.println(iphone.brand());

    }
}
